#!/bin/sh

# Figure out what the tools are named
# Varies from system to system
for CROSS in \
    i586-mingw32msvc- \
    i686-pc-mingw32- \
    "" \
    "not found, bug"
do
    test `which ${CROSS}windres 2>/dev/null` && break
done

set -e
set -x

${CROSS}windres displayrsrc.rc -o displayrsrc.o
${CROSS}gcc -pedantic -ansi -g -Wall displaydialog.c displayrsrc.o -o displaytabtext.exe

